package com.ruoyi.post.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 帖子表 com_post
 *
 * @author ruoyi
 * @date 2019-10-12
 */
public class Post extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/** 话题ID */
	private Integer topicId;
	/** 用户ID */
	private Integer userId;
	/** 审核状态 */
	private String verifyState;
	/** 帖子类型 1参与话题  2不参与话题 */
	private Integer postType;
	/** 点赞量 */
	private Integer likeNum;
	/** 浏览量 */
	private Integer glanceNum;
	/** 评论量 */
	private Integer commentsNum;
	/** 是否被举报  1是2否 */
	private Integer isComplain;
	/** 公开级别 */
	private String openLevel;
	/** 发帖地址 */
	private String postAddress;
	/** 经度 */
	private String addressLong;
	/** 纬度 */
	private String addressLati;
	/** 帖子内容 */
	private String postContent;
	/** 帖子图片 */
	private String postImg;
	/** 帖子等级 */
	private Integer postLevel;
	/** 有效值 */
	private Integer valid;
	/** 建立日期 */
	private Date createDate;
	/** 修改日期 */
	private Date modifyDate;

	private Date recommendDate;



	private String topicName;

	/** 分享数 */
	private Integer fenxiangNum;

	public void setFenxiangNum(Integer fenxiangNum)
	{
		this.fenxiangNum = fenxiangNum;
	}

	public Integer getFenxiangNum()
	{
		return fenxiangNum;
	}

	public String getTopicName() {
		return topicName;
	}

	public void setTopicName(String topicName) {
		this.topicName = topicName;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getId()
	{
		return id;
	}
	public void setTopicId(Integer topicId)
	{
		this.topicId = topicId;
	}

	public Integer getTopicId()
	{
		return topicId;
	}
	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}

	public Integer getUserId()
	{
		return userId;
	}
	public void setVerifyState(String verifyState)
	{
		this.verifyState = verifyState;
	}

	public String getVerifyState()
	{
		return verifyState;
	}
	public void setPostType(Integer postType)
	{
		this.postType = postType;
	}

	public Integer getPostType()
	{
		return postType;
	}
	public void setLikeNum(Integer likeNum)
	{
		this.likeNum = likeNum;
	}

	public Integer getLikeNum()
	{
		return likeNum;
	}
	public void setGlanceNum(Integer glanceNum)
	{
		this.glanceNum = glanceNum;
	}

	public Integer getGlanceNum()
	{
		return glanceNum;
	}
	public void setCommentsNum(Integer commentsNum)
	{
		this.commentsNum = commentsNum;
	}

	public Integer getCommentsNum()
	{
		return commentsNum;
	}
	public void setIsComplain(Integer isComplain)
	{
		this.isComplain = isComplain;
	}

	public Integer getIsComplain()
	{
		return isComplain;
	}
	public void setOpenLevel(String openLevel)
	{
		this.openLevel = openLevel;
	}

	public String getOpenLevel()
	{
		return openLevel;
	}
	public void setPostAddress(String postAddress)
	{
		this.postAddress = postAddress;
	}

	public String getPostAddress()
	{
		return postAddress;
	}
	public void setAddressLong(String addressLong)
	{
		this.addressLong = addressLong;
	}

	public String getAddressLong()
	{
		return addressLong;
	}
	public void setAddressLati(String addressLati)
	{
		this.addressLati = addressLati;
	}

	public String getAddressLati()
	{
		return addressLati;
	}
	public void setPostContent(String postContent)
	{
		this.postContent = postContent;
	}

	public String getPostContent()
	{
		return postContent;
	}
	public void setPostImg(String postImg)
	{
		this.postImg = postImg;
	}

	public String getPostImg()
	{
		return postImg;
	}
	public void setPostLevel(Integer postLevel)
	{
		this.postLevel = postLevel;
	}

	public Integer getPostLevel()
	{
		return postLevel;
	}
	public void setValid(Integer valid)
	{
		this.valid = valid;
	}

	public Integer getValid()
	{
		return valid;
	}
	public void setCreateDate(Date createDate)
	{
		this.createDate = createDate;
	}

	public Date getCreateDate()
	{
		return createDate;
	}
	public void setModifyDate(Date modifyDate)
	{
		this.modifyDate = modifyDate;
	}

	public Date getModifyDate()
	{
		return modifyDate;
	}

	public Date getRecommendDate() {
		return recommendDate;
	}

	public void setRecommendDate(Date recommendDate) {
		this.recommendDate = recommendDate;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topicId", getTopicId())
            .append("userId", getUserId())
            .append("verifyState", getVerifyState())
            .append("postType", getPostType())
            .append("likeNum", getLikeNum())
            .append("glanceNum", getGlanceNum())
            .append("commentsNum", getCommentsNum())
            .append("isComplain", getIsComplain())
            .append("openLevel", getOpenLevel())
            .append("postAddress", getPostAddress())
            .append("addressLong", getAddressLong())
            .append("addressLati", getAddressLati())
            .append("postContent", getPostContent())
            .append("postImg", getPostImg())
            .append("postLevel", getPostLevel())
            .append("valid", getValid())
            .append("createDate", getCreateDate())
            .append("modifyDate", getModifyDate())
			.append("recommendDate", getRecommendDate())
			.append("fenxiangNum", getFenxiangNum())
            .toString();
    }
}
